﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI/HRManagerUI/HrManager.Master" AutoEventWireup="true" CodeBehind="CodeConfigure.aspx.cs" Inherits="HRM.UI.HRManagerUI.Configuration.CodeConfigure" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentBody" runat="server">
     <link href="../../../Styles/Configuration/AddEmployeeCss.css" rel="stylesheet" type="text/css" />
     <script type="text/javascript" language="javascript">

         function CheckField() {
             if (document.getElementById("<%=txtCodePrefix.ClientID%>").value == "") {
                 document.getElementById("<%=msgLabel.ClientID%>").textContent = "Please Enter Code Prefix!";
                 document.getElementById("<%=msgLabel.ClientID%>").style.color = "red";
                 document.getElementById("<%=txtCodePrefix.ClientID%>").focus();
                 return false;
             }
             if (document.getElementById("<%=txtNumber.ClientID%>").Value == "") {
                 document.getElementById("<%=msgLabel.ClientID%>").textContent = "Please Enter Starting Date!";
                 document.getElementById("<%=msgLabel.ClientID%>").style.color = "red";
                 document.getElementById("<%=txtNumber.ClientID%>").focus();
                 return false;
             }
            
             return true;
         }
  

    </script>
    <fieldset>
        <legend>Code Prefix</legend>
                <table class="codeProjectTB">
                    <tr>
                        <td class="CodePrefixTD">
                           <table class="AddCodeTB">
                                <tr>
                                    <td colspan="2" class="msgLabeltd">
                                        <p id="pCodePrefix" runat="server" class="codePrefix">
                                        </p>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" class="msgLabeltd">
                                        <asp:Label runat="server" ID="msgLabel" CssClass="msgTxt"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="Label">
                                        Code Prefix
                                    </td>
                                    <td class="Field">
                                        <input type="text" runat="server" id="txtCodePrefix" class="textboxinput" /><span
                                            class="estaricStar">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="Label">
                                        Initial Number
                                    </td>
                                    <td class="Field">
                                        <input type="text" runat="server" id="txtNumber" class="textboxinput" /><span
                                            class="estaricStar">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="Label">
                                    </td>
                                    <td class="Field">
                                        <input type="submit" onserverclick="SaveCodePrefix" runat="server" id="addPproject"
                                            value="Save" class="btnCss" onclick="return CheckField()"/>
                                    </td>
                                </tr>
                            </table> 
                        </td>
                        <td style="width: 40%">
                           <div id="txtCodePrefixDiv">
                                Existing Code Prefix is:<br /><hr/>
                                "When You Create an Employee account/save employee details then system will give
                                you a default employee code,just driven from database according code prefix".
                          </div>
                        </td>
                    </tr>
                </table>
    </fieldset>
</asp:Content>
